package com.ctshk.rpc.order.goods.dto.resp;

import com.alibaba.fastjson.JSONObject;
import com.ctshk.rpc.order.goods.dto.CommodityFileDTO;
import com.ctshk.rpc.order.goods.dto.CommoditySpecifications;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * TODO
 *
 * @author 黄利斌
 * @date 2021/5/20 2:25 下午
 */
@Data
@ApiModel(value = "CommodityInfo对象", description = "商品详情展示")
public class CommodityInfo implements Serializable {
    @ApiModelProperty(value = "商品ID")
    private Long id;

    @ApiModelProperty(value = "商品名称")
    private String commodityName;

    @ApiModelProperty(value = "商品编码")
    private String commodityNumber;

    @ApiModelProperty(value = "商品分类")
    private List<CommodityCostListResp> commodityCostListResp;

    @ApiModelProperty(value = "分类名称")
    private String classificationName;

    @ApiModelProperty(value = "币种id")
    private Long currencyId;

    @ApiModelProperty(value = "币种名称")
    private String currencyName;

    @ApiModelProperty(value = "兑换率")
    private Double exchangeRate;

    @ApiModelProperty(value = "成本属性")
    private List<CommodityCostAttributeListResp> commodityCostAttributeList;

    @ApiModelProperty(value = "商品规格")
    private List<JSONObject> commoditySpecificationsList;

    @ApiModelProperty(value = "商品文件")
    private List<CommodityFileDTO> commodityFileDTO;

    @ApiModelProperty(value = "区域类型：1：中国香港；2：中国；3：澳门")
    private List<Integer> areaType;

    @ApiModelProperty(value = "规格类型：1：单规格；2：多规格")
    private Integer specificationsType;

    @ApiModelProperty(value = "是否允许门店自提：0：否；1：是")
    private Integer isItSelfProvided;

    @ApiModelProperty(value = "标签类型:1：新品；2：限时特惠")
    private Integer labelType;

    @ApiModelProperty(value = "商品详情")
    private String commodityDetails;

    @ApiModelProperty(value = "运费模板id")
    private Long freightTemplateId;


}
